import demo1.Animal;
import demo1.Cat;
import demo1.Dog;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        Dog dog = new Dog("小白", 2);
        Cat cat = new Cat();
        cat.miaow();//子类重写方法，虽然父类有此方法，但是会优先静态绑定子类
        cat.eat();













    }
}